package cn.yj.core.event;

import java.util.Set;

/**
 * @author 永健
 * @since 2021-10-16 22:29
 */
public class EventSource {
    /**
     * 违规的内容
     */
    private String content;

    /**
     * 违规的关键词
     */
    private Set<String> keyWord;

    private String userCode;

    public EventSource(String content, Set<String> keyWord, String userCode) {
        this.content = content;
        this.keyWord = keyWord;
        this.userCode = userCode;
    }

    public String getContent() {
        return content;
    }

    public EventSource setContent(String content) {
        this.content = content;
        return this;
    }

    public Set<String> getKeyWord() {
        return keyWord;
    }

    public EventSource setKeyWord(Set<String> keyWord) {
        this.keyWord = keyWord;
        return this;
    }

    public String getUserCode() {
        return userCode;
    }

    public EventSource setUserCode(String userCode) {
        this.userCode = userCode;
        return this;
    }
}
